package com.platform.modules.wallet.take;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Title: 转账、红包过期退款任务
 * @Description:
 * @Author: longge
 * @Date: 2020/12/30
 * @Version: V1.0
 */
public class RedPacketRefundTask extends Task {

    public RedPacketRefundTask(String id, long delayInMilliseconds) {
        super(id, delayInMilliseconds);
    }

    @Override
    public void run() {
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String now = df.format(LocalDateTime.now());
        System.out.println("退款时间：ID=" + this.getId() + " at time=" + now);
    }
}
